package com.ruoyi.quartz.task;

import com.ruoyi.common.utils.dd.RobotMessageUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * @Author: Blitzcrank007
 * @CreateTime: 2023年08月27 15:27
 */
@Component("orderTask")
@Slf4j
public class OrderTask {



    /**
     * 用于发起钉钉机器人消息提醒 每周一早上九点准时发送
     */
    public void ddRobotSendMsg()
    {

        RobotMessageUtil.Robot robot = new RobotMessageUtil.Robot();
        robot.setTitle("本年度未完善的商机如下：");
        robot.setText("没有内容");
        robot.setSingleTitle("点击处理");
        robot.setSingleURL("/order/id=");
        try {
            RobotMessageUtil.RobotMessage("6704396268803718",robot);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }finally {
            log.info("执行成功 ");
            System.out.println("执行成功");
        }
    }



}
